package com.goodluck.goodluckim.db.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

/**
 * Created by wyj on 2018/9/7.
 */
@Entity
public class TeamMember implements Serializable {

    private static final long serialVersionUID = -9164898345213643066L;
    @Id
    private Long id;
    /**
     * 群ID
     */
    @Unique
    private long groupsId;
    /**
     * 成员ID
     */
    private long userId;
    /**
     * 成员昵称
     */
    private String name;
    /**
     * 好友和用户关系
     */
    private int userRelationship;
    /**
     * 备注名称
     */
    private String displayName;
    /**
     * 头像
     */
    private String portraitUri;
    /**
     * 群里角色
     */
    private int role;
    /**
     * 拼音
     */
    private String groupNameSpelling;
    /**
     * 入群时间
     */
    private long joinTime;
    /**
     * 附加
     */
    private String extra;

    @Generated(hash = 1703418877)
    public TeamMember(Long id, long groupsId, long userId, String name,
                      int userRelationship, String displayName, String portraitUri, int role,
                      String groupNameSpelling, long joinTime, String extra) {
        this.id = id;
        this.groupsId = groupsId;
        this.userId = userId;
        this.name = name;
        this.userRelationship = userRelationship;
        this.displayName = displayName;
        this.portraitUri = portraitUri;
        this.role = role;
        this.groupNameSpelling = groupNameSpelling;
        this.joinTime = joinTime;
        this.extra = extra;
    }

    @Generated(hash = 1861763715)
    public TeamMember() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getGroupsId() {
        return this.groupsId;
    }

    public void setGroupsId(long groupsId) {
        this.groupsId = groupsId;
    }

    public long getUserId() {
        return this.userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUserRelationship() {
        return this.userRelationship;
    }

    public void setUserRelationship(int userRelationship) {
        this.userRelationship = userRelationship;
    }

    public String getDisplayName() {
        return this.displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getPortraitUri() {
        return this.portraitUri;
    }

    public void setPortraitUri(String portraitUri) {
        this.portraitUri = portraitUri;
    }

    public int getRole() {
        return this.role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getGroupNameSpelling() {
        return this.groupNameSpelling;
    }

    public void setGroupNameSpelling(String groupNameSpelling) {
        this.groupNameSpelling = groupNameSpelling;
    }

    public long getJoinTime() {
        return this.joinTime;
    }

    public void setJoinTime(long joinTime) {
        this.joinTime = joinTime;
    }

    public String getExtra() {
        return this.extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }
}
